package com.ruoyi.maode.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;


/**
 * 零部件实体类
 * @author zhangwenqiang
 */
@Data
@Accessors(chain = true)
@TableName("part")
@ApiModel(value = "Part对象", description = "零部件表")
public class Part{



    @Excel(name = "零件序号")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Excel(name = "零件编码")
    private String partCode;

    @Excel(name = "零件名称")
    private String partName;

    @Excel(name = "机型")
    private String model;

    @Excel(name = "零件重量")
    private String partWeight;

    @Excel(name = "零件类型：0-成品，1-毛坯，2-精车坯，3-粗车坯，4-热处理")
    private Integer type;

    @Excel(name = "零件描述")
    private String partDescription;

    @Excel(name = "图片地址")
    private String img;

    @Excel(name = "excel文件地址")
    private String file;

    @Excel(name = "是否删除,0-否，1-是")
    private Integer isDelete;

    @Excel(name = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
